package com.bootdo.mall.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 首页分类
 * 
 * @author lujingqian
 * @email 2100272728@qq.com
 * @date 2019-11-12 14:49:19
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class MallIndexCategory extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//名字
		@HapiFeild("名字")
	private String name;
	
	//标签
		@HapiFeild("标签")
	private String label;
	
	//图片
		@HapiFeild("图片")
	private String pic;
	
	//排序
		@HapiFeild("排序")
	private Integer px;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//用户ID
		@HapiFeild("用户ID")
	private Long userId;
	
	//用户名
		@HapiFeild("用户名")
	private String userName;


	//区域 1是 导航图标 2是推荐分类 3是底部分类
	private Integer area;

	// 关联类型  1是分类 2是商品
	private Integer type;

    public MallIndexCategory(){
    	this.area  = 1;
    	this.pic = "";
    	this.type = 2;
    	this.createTime = new Date();
    }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getArea() {
		return area;
	}

	public void setArea(Integer area) {
		this.area = area;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：名字
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名字
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：标签
	 */
	public void setLabel(String label) {
		this.label = label;
	}
	/**
	 * 获取：标签
	 */
	public String getLabel() {
		return label;
	}
	/**
	 * 设置：图片
	 */
	public void setPic(String pic) {
		this.pic = pic;
	}
	/**
	 * 获取：图片
	 */
	public String getPic() {
		return pic;
	}
	/**
	 * 设置：排序
	 */
	public void setPx(Integer px) {
		this.px = px;
	}
	/**
	 * 获取：排序
	 */
	public Integer getPx() {
		return px;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：用户名
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 获取：用户名
	 */
	public String getUserName() {
		return userName;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
